package com.gzy.studentsociety.dao;

import com.gzy.studentsociety.entity.Student;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;

import java.sql.SQLException;
import java.util.List;

import static com.sun.xml.internal.ws.encoding.xml.XMLMessage.getDataSource;

public interface StudentDao{
    public Student login(String acc, String pwd) throws SQLException;

    public boolean register(Student student) throws SQLException;

    Student findByNumber(String number) throws SQLException;

    Student findById(Integer id) throws SQLException;
}

